import request from '@/utils/request'

// 查询距离时效列表
export function listTimeLiness(query) {
  return request({
    url: '/base/timeLiness/list',
    method: 'get',
    params: query
  })
}

// 查询距离时效详细
export function getTimeLiness(id) {
  return request({
    url: '/base/timeLiness/' + id,
    method: 'get'
  })
}

// 新增距离时效
export function addTimeLiness(data) {
  return request({
    url: '/base/timeLiness',
    method: 'post',
    data: data
  })
}

// 修改距离时效
export function updateTimeLiness(data) {
  return request({
    url: '/base/timeLiness',
    method: 'put',
    data: data
  })
}

// 删除距离时效
export function delTimeLiness(id) {
  return request({
    url: '/base/timeLiness/' + id,
    method: 'delete'
  })
}
